package com.wangyw.Test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wangyw.ioc.HelloWorldIoc;

public class IocTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext ctx =  new ClassPathXmlApplicationContext("applicationContext.xml");
		HelloWorldIoc ioc=(HelloWorldIoc) ctx.getBean("helloWorldIoc");
		ioc.sayHello();
        System.out.println("Hello World！");
	}
}